package com.yuan.SMS.dao;

import com.yuan.SMS.bean.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentDao {
    public List<Student> findAllStudent(@Param("pageStart") int PageStart, @Param("pageSize") int pageSize);
    public int getStudentCounts();
    public List<Student> findOneStudent(@Param("studentNo") String studentNo);
    public int addStudent(Student student);
    public int deleteStudent(@Param("studentNo") String studentNo);
    public int updateStudent(Student student);
    public int getStudentCountsByAge(String StudentAge);
    public int getStudentCountsByAddress(String address);
    public int getStudentCountsByPolitics(String politics);
}
